
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.csvgenerator.engine.value;

/**
 *
 * @author Administrator
 */
public abstract class ValueProducer {

    //attributes
    protected Long id;
    protected boolean disabled = false;
    protected boolean hidden = false;
    //auxiliary
    protected String currentValue;   

    public abstract String nextValue();

    public boolean isDisabled() {
        return disabled;
    }

    public void setDisabled(boolean disabled) {
        this.disabled = disabled;
    }

    public boolean isHidden() {
        return hidden;
    }

    public void setHidden(boolean hidden) {
        this.hidden = hidden;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getCurrentValue() {
        if (id<0) {
            nextValue();
        }
        return currentValue;
    }

    public void setCurrentValue(String currentValue) {
        this.currentValue = currentValue;
    }
}
